home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1362.dms / var1362.adf / DISKSPEED.DOC < prev    next >
Text File  |  1992-09-02  |  9KB  |  185 lines

  1.  
  2.                          DiskSpeed v2.0
  3.                                by
  4.                           Michael Sinz
  5.  
  6.             Copyright (c) 1989 by MKSoft Development
  7.  
  8.  
  9. Yes, this is yet another disk speed testing program, but with a few
  10. differences.  It was designed to give the most accurate results of the
  11. true disk performance in the system.  For this reason many of
  12. DiskSpeed's results may look either lower or higher than current disk
  13. performance tests.
  14.  
  15. This program was thrown together in a few hours because I needed more
  16. accurate and consistent results for disk performance as seen from the
  17. application's standpoint.  This program has now served its purpose and
  18. I am now giving it to the rest of the Amiga world to play with as long
  19. as all of the files remain together in unmodified form.  (That is, the
  20. files DiskSpeed, DiskSpeed.info, DiskSpeed.c, DiskSpeedWindow.c,
  21. DiskSpeedWindow.h, MakeBoxes.c, MakeBoxes.h, StandardGadgets.c,
  22. StandardGadgets.h, RenderInfo.c, RenderInfo.h, DiskSpeed.doc, and
  23. MakeFile)
  24.  
  25. Version 2.0 of this program added a few features and cleaned up the
  26. user interface.  I hope you like this...
  27.  
  28. ************************************************************************
  29.  
  30.     Reading legal mush can turn your bain into guacamole!
  31.  
  32.         So here is some of that legal mush:
  33.  
  34. Permission is hereby granted to distribute this program's source,
  35. executable, and documentation for non-commercial purposes, so long as
  36. the copyright notices are not removed from the sources, executable or
  37. documentation.  This program may not be distributed for a profit
  38. without the express written consent of the author Michael Sinz.
  39.  
  40. This program is not in the public domain.
  41.  
  42. Fred Fish is expressly granted permission to distribute this program's
  43. source and executable as part of the "Fred Fish freely redistributable
  44. Amiga software library."
  45.  
  46. Permission is expressly granted for this program and it's source to be
  47. distributed as part of the Amicus Amiga software disks, and the First
  48. Amiga User Group's Hot Mix disks.
  49.                                          
  50. ************************************************************************
  51.  
  52. ------------------------------------------------------------------------
  53.  
  54.                             User's Guide
  55.  
  56. DiskSpeed is very easy to operate.  Just start the program by either
  57. clicking on its icon or typing its name in from the CLI.  DiskSpeed
  58. will open another window with the "Drive:" string gadget active. Enter
  59. the drive name and select "Test" from the menu and DiskSpeed will go
  60. and test that device.  The results will be displayed as they are
  61. generated.
  62.  
  63. After the device has been tested, the results may be saved to the
  64. DiskSpeed.Results file in the current directory or printed on the
  65. printer.  When the results are saved in DiskSpeed.Results, they are
  66. appended to the end of that file in order to make it possible to create
  67. a single file containing the results of all of your devices.
  68.  
  69. ------------------------------------------------------------------------
  70.  
  71.                       How Does DiskSpeed Work?
  72.  
  73. DiskSpeed is rather simple.  It uses the Amiga's Timer.device to get
  74. and calculate the time differences between the start and end of each
  75. test section.  This timer is locked to the VBlank frequency and thus is
  76. rather stable and accurate.  (Resolution is ~0.02 seconds so the
  77. accuracy is +/- ~0.04 seconds.  This should be rather good as most
  78. operations take well over 2 seconds...)
  79.  
  80. The tests work as follows:
  81.  
  82. DiskSpeed will first create a temporary directory on the selected
  83. device.  Note that the device will have to be write enabled and will
  84. need around 600 free blocks.  (Depends on the filing system)  All tests
  85. are done in this directory and all files and this directory are removed
  86. when the test is completed.  It is for this reason that some parts of
  87. the tests can not be stopped as there is a large amount of cleanup
  88. after them.
  89.  
  90. Gadgets in DiskSpeed 2.0------------------------------------------------
  91.  
  92. Device Gadget:    This is the device that is to be tested...
  93.  
  94. Comment Gadget:    This is the comment that will be written out with
  95.         the results of the test.  (79 characters...)
  96.  
  97. Test Intensity:    This selects the test intensity.  Due to the timer
  98.         on the Amiga, you will get more accurate results
  99.         with a higher test intensity.  However, when testing
  100.         slow drives or floppies, this may not be a good
  101.         thing as it would take too long.  The settings
  102.         select the multipliers that will be used during testing.
  103.         This affects the number of times the large file
  104.         is read for the Create/Write/Read tests.
  105.  
  106.         Low settings on a FAST device will give inaccurate
  107.         values.  High settings on a slow device will take
  108.         a long time to complete.
  109.  
  110. File Create Test:    ------------------------------------------------
  111.  
  112. In this test, the program generates some unique file names.  As each of
  113. the names are generated, the program Open()s the file as MODE_NEWFILE
  114. and the Close()s it.  This is to time the overhead in creating a file.
  115. All of the files created are 0-bytes in length as no data is written to
  116. these files.  These same files will be used for the Directory Scan,
  117. File Open/Close, and File Delete tests.
  118.  
  119. File Open/Close Test:    ------------------------------------------------
  120.  
  121. In this test, the program opens and then closes each of the files that
  122. were created in the test above.  This shows the overhead for these
  123. calls...
  124.  
  125. Directory Scan Test:    ------------------------------------------------
  126.  
  127. In this test, the directory of files created in the File Create test is
  128. scanned three times to see how quickly the system can walk directories.
  129.  
  130. File Delete Test:    ------------------------------------------------
  131.  
  132. This test times the deletion of the files created in the File Create
  133. test.  This shows the overhead in the deletion of a file from the
  134. filing system/device.  After this point, the program once again checks
  135. for the close gadget as it would be safe to exit here.
  136.  
  137. Seek And Read Test:    ------------------------------------------------
  138.  
  139. For this test, a 256K-byte file was created.  The program seeks to the
  140. start of the file and reads 64 bytes; then it seeks to the end of the
  141. file - 128 bytes and then reads 64 bytes; then it seeks to the middle
  142. of the file and reads 64 bytes.  It uses each of the three seeking
  143. methods (OFFSET_BEGINNING, OFFSET_END, OFFSET_CURRENT) to do this. This
  144. activity is repeated 150 times, for a total of 450 seek/reads. The
  145. timings from this test will show both disk seek performance and
  146. filesystem performance in the calculation of seek locations and actual
  147. block values.
  148.  
  149. Raw Write/Create Test:    ------------------------------------------------
  150.  
  151. For this test, a 256K-byte file is created.  The program recreates this
  152. file for each pass, thus showing the speed of laying down new blocks on
  153. the drive.  The data is written in n-byte increments. (In the current
  154. version of DiskSpeed, this is 512, 4096, 32768, and 262144 byte
  155. chunks.) The complete file is written multiple times to give a more
  156. complete view of actual read speeds.  This test will mainly show the
  157. raw data transfer rate of the machine plus the overhead of the
  158. operating system calls and device driver calls.  If the disk was very
  159. fragmented, it would also show some signs of how the seek time is
  160. causing performance to drop due to the fragmentation.
  161.  
  162. Raw Write Test:        ------------------------------------------------
  163.  
  164. For this test, a 256K-byte file was created.  The program seeks to the
  165. start of the file and writes it in n-byte increments.  (In the current
  166. version of DiskSpeed, this is 512, 4096, 32768, 262144 byte chunks.)
  167. The complete file is written multiple times to give a more complete
  168. view of actual write speeds.  This test will mainly show the raw data
  169. transfer rate of the machine plus the overhead of the operating system
  170. calls and device driver calls.  If the disk was very fragmented, it
  171. would also show some signs of how the seek time is causing performance
  172. to drop due to the fragmentation.
  173.  
  174. Raw Read Test:        ------------------------------------------------
  175.  
  176. For this test, a 256K-byte file was created.  The program seeks to the
  177. start of the file and reads it in n-byte increments.  (In the current
  178. version of DiskSpeed, this is 512, 4096, 32768, and 262144 byte
  179. chunks.) The complete file is read multiple times to give a more
  180. complete view of actual read speeds.  This test will mainly show the
  181. raw data transfer rate of the machine plus the overhead of the
  182. operating system calls and device driver calls.  If the disk was very
  183. fragmented, it would also show some signs of how the seek time is
  184. causing performance to drop due to the fragmentation.
  185.